package com.beta.resource.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.beta.resource.model.Category;

@Mapper
@Repository
public interface CategoryMapper {
    public int createTables();
    public int createUserDefTable();
    public List<Category> getCategoryList(@Param("uid") int uid);
    public int addCategory(Category category);
    public Integer hasCategory(@Param("uid") int uid, @Param("cid") int cid);
    public int addCategoryFor(@Param("uid") int uid, @Param("cid") int cid);
    public Category getCategory(@Param("desc") String desc);
}
